<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <!-- jQuery -->
    <script type="text/javascript" src="<?php echo base_url('public/jquery-2.1.0/jquery.min.js'); ?>"></script>

    <!-- Bootstrap -->
    <script type="text/javascript" src="<?php echo base_url('public/libraries/bootstrap/js/bootstrap.js'); ?>"></script>
    <link href="<?php echo base_url('public/libraries/bootstrap/css/bootstrap.min.css'); ?>" rel="stylesheet" media="screen"/>

    <link href="<?php echo base_url('public/css/common.css') ?>" rel="stylesheet" media="screen"/>

    <title>Yime-WebSite 初始化向导</title>
    <style>
        body {
            background-color: #d9d9d9;
        }

        .panel {
            box-shadow: 0 0 5px rgba(80, 80, 80, 0.8);
        }

    </style>
</head>
<body>
<div style="width: 500px;margin: 100px auto;">
    <?php if (isset($isSuccess) && $isSuccess == true) : ?>
        <?php /** @var User $thatUser */ ?>
        <div class="panel panel-success">
            <div class="panel-heading">
                <h3 class="panel-title text-center">初始化完成！</h3>
            </div>
            <div class="panel-footer text-center">
                <a class="btn btn-success form-control" href="<?php echo base_url(); ?>">开始使用</a>
            </div>
        </div>
    <?php else : ?>
        <form method="post">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">初始化向导</h3>
                </div>
                <div class="panel-body">
                    <div class="input-group">
                        <label for="site-name" class="input-group-addon">站点名</label>
                        <input type="text" name="site-name" id="site-name" class="form-control" required="required"/>
                    </div>
                    <div class="input-group">
                        <label for="user-email" class="input-group-addon">初始用户Email</label>
                        <input type="email" name="user-email" id="user-email" class="form-control" required="required"/>
                    </div>
                    <div class="input-group">
                        <label for="user-password" class="input-group-addon">初始用户密码</label>
                        <input type="password" name="user-password" id="user-password" class="form-control" required="required"/>
                    </div>
                </div>
                <div class="panel-footer text-center">
                    <input type="submit" class="btn btn-success form-control" value="确定！"/>
                </div>
            </div>
        </form>
    <?php endif; ?>
</div>
</body>
</html>